package birs.controller.quality;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import birs.controller.quality.task.QLT001Task;

/**
 * Servlet implementation class QLT001Controller
 */
@WebServlet("/QLT001Controller")
public class QLT001Controller extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public QLT001Controller() {
        super();
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		try {
			QLT001Task qlt001Task = new QLT001Task();
			if(("getQltPoint").equalsIgnoreCase(request.getParameter("parameter"))){
				qlt001Task.getQuality(request, response);
			}
			else if(("getQltFacPoint").equalsIgnoreCase(request.getParameter("parameter"))){
				qlt001Task.getQualityByFac(request, response);
			}else{
				qlt001Task.getComment(request, response);
			}
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
	}

}
